gtk4.git
24 years agocheck the return value of _gtk_tree_view_find_node and return if it's
Kristian Rietveld [Mon, 8 Apr 2002 17:42:45 +0000 (17:42 +0000)]
check the return value of _gtk_tree_view_find_node and return if it's

Mon Apr  8 20:28:54 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeselection.c (gtk_tree_selection_select_path),
        (gtk_tree_selection_unselect_path),
        (gtk_tree_selection_path_is_selected): check the return value of
        _gtk_tree_view_find_node and return if it's TRUE. This makes those
        functions work somewhat saner on non-expanded trees.

24 years agoUpdated French translation.
Christophe Merlet [Mon, 8 Apr 2002 07:58:03 +0000 (07:58 +0000)]
Updated French translation.

24 years agoRestructured to use gdk_pixbuf_new instead of manually allocating image
Matthias Clasen [Sat, 6 Apr 2002 18:51:40 +0000 (18:51 +0000)]
Restructured to use gdk_pixbuf_new instead of manually allocating image

* io-png.c (gdk_pixbuf__png_image_load): Restructured to use
gdk_pixbuf_new instead of manually allocating image storage. This
gives us a good rowstride and overflow checks.  (#77807)

24 years agoUpdated Danish translation.
Ole Laursen [Sat, 6 Apr 2002 13:57:47 +0000 (13:57 +0000)]
Updated Danish translation.

2002-04-06  Ole Laursen  <olau@hardworking.dk>

* da.po: Updated Danish translation.

24 years agoUpdated Polish translation by GNOME PL Team <translators@gnome.pl>
Chyla Zbigniew [Sat, 6 Apr 2002 10:12:14 +0000 (10:12 +0000)]
Updated Polish translation by GNOME PL Team <translators@gnome.pl>

24 years agoAvoid allocating an extra copy of the image by using a
Matthias Clasen [Fri, 5 Apr 2002 21:02:07 +0000 (21:02 +0000)]
Avoid allocating an extra copy of the image by using a

* io-tiff.c (tiff_image_parse): Avoid allocating an extra copy of
the image by using a TIFFRGBAImage{Begin,Get,End} with suitable
put functions instead of TIFFRGBAImage. And check image dimensions
for overflow.

24 years agoUpdated Malay Translation.
Hasbullah Bin Pit [Fri, 5 Apr 2002 18:41:18 +0000 (18:41 +0000)]
Updated Malay Translation.

2002-04-05  Hasbullah Bin Pit <sebol@ikhlas.com>

* ms.po: Updated Malay Translation.

24 years agofree anchor row reference after unselecting the selection (fixes #76272)
Kristian Rietveld [Fri, 5 Apr 2002 16:28:14 +0000 (16:28 +0000)]
free anchor row reference after unselecting the selection (fixes #76272)

Fri Apr  5 18:28:56 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): free
        anchor row reference after unselecting the selection (fixes #76272)

Fri Apr  5 18:27:48 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): only return
        when we don't have to open all children (fixes #75736)

Fri Apr  5 18:24:24 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear): unref
        cellrenderer after clearing the attributes of the renderer (fixes
        #75592)

24 years agoimplement. (gtk_tree_view_move_cursor_up_down): check for focus
Jonathan Blandford [Fri, 5 Apr 2002 16:11:32 +0000 (16:11 +0000)]
implement. (gtk_tree_view_move_cursor_up_down): check for focus

Fri Apr  5 05:55:14 2002  Jonathan Blandford  <jrb@gnome.org>

* gtk/gtktreeview.c (gtk_tree_view_grab_focus): implement.
  (gtk_tree_view_move_cursor_up_down): check for focus
  (gtk_tree_view_move_cursor_page_up_down): ditto
  (gtk_tree_view_move_cursor_left_right): ditto
  (gtk_tree_view_move_cursor_start_end): ditto
  (gtk_tree_view_real_select_all): ditto
  (gtk_tree_view_real_unselect_all): ditto
  (gtk_tree_view_real_select_cursor_row): ditto
  (gtk_tree_view_real_toggle_cursor_row): ditto
  (gtk_tree_view_real_expand_collapse_cursor_row): ditto
  (gtk_tree_view_real_select_cursor_parent): ditto
  (gtk_tree_view_real_start_interactive_search): ditto

* gtk/gtktreeviewcolumn.c: grab focus

24 years agoUpdated Ukrainian translation
Yuri Syrota [Fri, 5 Apr 2002 16:11:01 +0000 (16:11 +0000)]
Updated Ukrainian translation

24 years agoremoved gdkkeysyms.h from .cvsignore
Sven Neumann [Fri, 5 Apr 2002 15:49:42 +0000 (15:49 +0000)]
removed gdkkeysyms.h from .cvsignore

24 years agoFix undefined variable typo. Patch from Simon Floery <simon.floery@gmx.at>
Alex Larsson [Fri, 5 Apr 2002 15:11:00 +0000 (15:11 +0000)]
Fix undefined variable typo. Patch from Simon Floery <simon.floery@gmx.at>

2002-04-05  Alex Larsson  <alexl@redhat.com>

* gdk/linux-fb/gdkkeyboard-fb.c (write_string):
Fix undefined variable typo.
Patch from Simon Floery <simon.floery@gmx.at>

24 years agofix segfault upon NULL return from gdk_utf8_to_string_target().
Tim Janik [Thu, 4 Apr 2002 23:10:58 +0000 (23:10 +0000)]
fix segfault upon NULL return from gdk_utf8_to_string_target().

Fri Apr  5 01:06:15 2002  Tim Janik  <timj@gtk.org>

        * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
        upon NULL return from gdk_utf8_to_string_target().

        * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
        return value comment to mention NULL returns upon EMFILE.

24 years agorevert accidentally commited change to testgtk.c
Soeren Sandmann [Thu, 4 Apr 2002 20:49:03 +0000 (20:49 +0000)]
revert accidentally commited change to testgtk.c

Thu Apr  4 22:35:42 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* tests/testgtk.c (menu_items): revert accidentally commited
change to testgtk.c

24 years agoFix problem with menu titles being clipped (#75948)
Soeren Sandmann [Thu, 4 Apr 2002 20:28:47 +0000 (20:28 +0000)]
Fix problem with menu titles being clipped (#75948)

Thu Apr  4 22:28:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
titles being clipped (#75948)

24 years agoFix some bugs, and introduce a minor feature.
Tor Lillqvist [Thu, 4 Apr 2002 20:23:56 +0000 (20:23 +0000)]
Fix some bugs, and introduce a minor feature.

2002-04-04  Tor Lillqvist  <tml@iki.fi>

* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.

(gdk_rgb_convert_4_pack): New function, for 16-color (4 bits per
pixel) static visuals (fixes #858).

(gdk_rgb_convert_gray4_pack, gdk_rgb_convert_gray4_d_pack): Fix
same bugs in both functions: Odd start coordinate (partial byte)
was not handled correctly. Also a partial final byte was not
handled correctly.

(gdk_rgb_do_colormaps): Use G_N_ELEMENTS.
(gdk_rgb_create_info): For pseudocolor visuals, use the 2x2x2
colorcube only for depths 3 and 4. For static color, use it for
depths 3..7 like before. (Depth 5..7 pseudocolor probably never
occurs on X11. It doesn't normally occur on Win32 either, but
there is experimental code in gdkvisual-win32.c to let the user
restrict the size of palette used.)
(gdk_rgb_init): Set gdk_rgb_verbose if the GDK_DEBUG_GDKRGB flag
is set.
(gdk_rgb_select_conv): Use gdk_rgb_convert_8 also for depths 5, 6
and 7 (see above). Use gdk_rgb_convert_4_pack for 4 bits per pixel
static color.

24 years agoFix a doc typo.
Matthias Clasen [Wed, 3 Apr 2002 18:17:14 +0000 (18:17 +0000)]
Fix a doc typo.

* gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_type): Fix a doc typo.

24 years agoUpdated Korean translation.
Changwoo Ryu [Wed, 3 Apr 2002 17:03:27 +0000 (17:03 +0000)]
Updated Korean translation.

* ko.po: Updated Korean translation.

24 years agoUpdated Estonian translation.
Tõivo Leedjärv [Tue, 2 Apr 2002 22:46:31 +0000 (22:46 +0000)]
Updated Estonian translation.

2002-04-02  Tõivo Leedjärv  <toivo@linux.ee>

        * et.po: Updated Estonian translation.

24 years agoset the sort_func correctly, 77030
Jonathan Blandford [Tue, 2 Apr 2002 16:19:33 +0000 (16:19 +0000)]
set the sort_func correctly, 77030

Tue Apr  2 11:10:13 2002  Jonathan Blandford  <jrb@redhat.com>
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030

24 years agoupdate version to 2.0.2, binary age 2, interface age 2.
Tim Janik [Tue, 2 Apr 2002 12:10:57 +0000 (12:10 +0000)]
update version to 2.0.2, binary age 2, interface age 2.

Tue Apr  2 13:44:27 2002  Tim Janik  <timj@gtk.org>

        * configure.in: update version to 2.0.2, binary age 2, interface
        age 2.

        * NEWS: updates for 2.0.2.

24 years agoUpdated Portuguese translation.
Duarte Loreto [Mon, 1 Apr 2002 23:40:19 +0000 (23:40 +0000)]
Updated Portuguese translation.

2002-04-02  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.

24 years agoAdded missing file. Updated Swedish translation.
Christian Rose [Mon, 1 Apr 2002 22:32:33 +0000 (22:32 +0000)]
Added missing file. Updated Swedish translation.

2002-04-02  Christian Rose  <menthos@menthos.com>

* POTFILES.in: Added missing file.
* sv.po: Updated Swedish translation.

24 years agoadd check for y > tree_view->priv->height (fixes #76974)
Kristian Rietveld [Mon, 1 Apr 2002 20:40:58 +0000 (20:40 +0000)]
add check for y > tree_view->priv->height (fixes #76974)

Mon Apr  1 22:20:24 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): add
        check for y > tree_view->priv->height (fixes #76974)

Mon Apr  1 22:19:39 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): get
        the stamp changes right this time

Mon Apr  1 22:13:24 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodel.c (gtk_tree_row_reference_free): only
        disconnect the ref callbacks when model == proxy (Thanks go to
        Manuel Clos Crespo for the remote debugging)

24 years agoUpdated russian translation.
Valek Frob [Mon, 1 Apr 2002 07:38:27 +0000 (07:38 +0000)]
Updated russian translation.

24 years agoUpdated russian trqnslation.
Valek Frob [Mon, 1 Apr 2002 07:37:29 +0000 (07:37 +0000)]
Updated russian trqnslation.

24 years agoUpdated Korean translation.
Changwoo Ryu [Mon, 1 Apr 2002 03:44:16 +0000 (03:44 +0000)]
Updated Korean translation.

* ko.po: Updated Korean translation.

24 years agorecommit after tagging 2_0_1
Owen Taylor [Sat, 30 Mar 2002 20:52:42 +0000 (20:52 +0000)]
recommit after tagging 2_0_1

24 years agorevert change for tagging 2_0_1
Owen Taylor [Sat, 30 Mar 2002 20:51:19 +0000 (20:51 +0000)]
revert change for tagging 2_0_1

24 years ago===== Released 2.0.1 ======
Owen Taylor [Sat, 30 Mar 2002 20:46:14 +0000 (20:46 +0000)]
===== Released 2.0.1 ======

Fri Mar 29 18:15:12 2002  Owen Taylor  <otaylor@redhat.com>

        * ===== Released 2.0.1 ======

24 years agorevert the latest stamp increment changes, as it broke stuff for trees
Kristian Rietveld [Sat, 30 Mar 2002 14:15:28 +0000 (14:15 +0000)]
revert the latest stamp increment changes, as it broke stuff for trees

Sat Mar 30 15:19:24 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodelsort.c: revert the latest stamp increment changes,
        as it broke stuff for trees

24 years agoCall gdk_keyval_to_lower() on the key passed in, since we lowercase all
Owen Taylor [Fri, 29 Mar 2002 23:15:03 +0000 (23:15 +0000)]
Call gdk_keyval_to_lower() on the key passed in, since we lowercase all

Fri Mar 29 18:09:18 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkaccelgroup.c (gtk_accel_group_query): Call
        gdk_keyval_to_lower() on the key passed in, since we
        lowercase all other key vals passed in, so querying
        keyvals will otherwise fail if the caller used
        an uppercase accelerators (#76899, Vitaly Tishkov)

24 years agoFix screwup in handling of module path that was resulting in freed memory
Owen Taylor [Fri, 29 Mar 2002 23:05:11 +0000 (23:05 +0000)]
Fix screwup in handling of module path that was resulting in freed memory

Fri Mar 29 17:41:21 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmain.c (load_modules): Fix screwup in handling
        of module path that was resulting in freed memory being
        accessed when both GTK_MODULES and a theme were set.
        (#76902, Johan Dahlin)

24 years agoFix wrong stock id's for ADD/REMOVE. (#76915, Vitaly Tishkov)
Owen Taylor [Fri, 29 Mar 2002 23:00:41 +0000 (23:00 +0000)]
Fix wrong stock id's for ADD/REMOVE. (#76915, Vitaly Tishkov)

Fri Mar 29 17:57:36 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkiconfactory.c (get_default_icons): Fix wrong
        stock id's for ADD/REMOVE. (#76915, Vitaly Tishkov)

24 years agofix typo in gtk_init_check macro, which caused crashes if argc != 0
Hans Breuer [Fri, 29 Mar 2002 22:38:17 +0000 (22:38 +0000)]
fix typo in gtk_init_check macro, which caused crashes if argc != 0

2002-03-29  Hans Breuer  <hans@breuer.org>

* gtk/gtkmain.h : fix typo in gtk_init_check macro, which
caused crashes if argc != 0

* gtk/stock-icons/makefile.msc : added new icons

24 years agolibpng error handlers must not return to their callers, thus longjmp out.
Matthias Clasen [Fri, 29 Mar 2002 21:40:01 +0000 (21:40 +0000)]
libpng error handlers must not return to their callers, thus longjmp out.

* io-png.c (png_simple_error_callback): libpng error handlers must
not return to their callers, thus longjmp out. This prevents
annoying stderr output from the default error handler.

24 years agoremove call to gtk_tree_model_sort_increment_stamp
Kristian Rietveld [Fri, 29 Mar 2002 19:14:02 +0000 (19:14 +0000)]
remove call to gtk_tree_model_sort_increment_stamp

Fri Mar 29 20:17:35 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
        remove call to gtk_tree_model_sort_increment_stamp
        (gtk_tree_model_sort_sort_level): always increment the stamp

24 years agoUpdates
Owen Taylor [Fri, 29 Mar 2002 06:23:35 +0000 (06:23 +0000)]
Updates

Fri Mar 29 00:19:41 2002  Owen Taylor  <otaylor@redhat.com>

        * NEWS: Updates

        * configure.in: Version 2.0.1, binary, interface age 1.

        * configure.in (GDK_PIXBUF_VERSION): Up required versions
        of dependencies.

        * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
        Add stock_add/remove_16.

24 years agoDon't show the window unless the widget is mapped. (#76742, Dennis
Owen Taylor [Fri, 29 Mar 2002 00:15:11 +0000 (00:15 +0000)]
Don't show the window unless the widget is mapped. (#76742, Dennis

Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate):
Don't show the window unless the widget is mapped.
        (#76742, Dennis Björklund, Soeren Sandmann)

24 years agoFixed dashed line issues (#74441) to an IMO reasonable extend. That is:
Hans Breuer [Thu, 28 Mar 2002 23:25:33 +0000 (23:25 +0000)]
Fixed dashed line issues (#74441) to an IMO reasonable extend. That is:

2002-03-29  Hans Breuer  <hans@breuer.org>

Fixed dashed line issues (#74441) to an IMO reasonable extend.
That is: use PS_USERSTYLE on WinNT (the next GDI limit appears
to be with lines width > 50); Render horizontal and vertical
dashed lines on Win9x 'by hand'. Dotted selection rectangles
and Dia look nice ...

* gdk/win32/gdkprivate-win32.h : add pen_dashes pointer and
num_pen_dashes to _GdkGCWin32
* gdk/win32/gdkgc-win32.c : initialize pen_dashes and remove
the guesses from dashes to windoze line styles.
(predraw_set_forground) : always ExtCreatePen (PS_SOLID) on
Win9x, which does not support PS_USERSTYLE.
* gdk/win32/gdkdrawable-win32.c : new functions render_line_
<horizontal|vertical>. Use them if not running on NT in
gdk_win32_draw_<rectangle|segments|lines> ()

* gdk/win32/gdkkeys-win32.c (gdk_keyval_name) : return NULL
for keyval == 0 to avoid to have zeros in all menu entries
without accelerator.

24 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Thu, 28 Mar 2002 23:22:34 +0000 (23:22 +0000)]
Updated Norwegian (bokmål) translation.

2002-03-28  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

24 years agonew add, remove stock icons
Jakub Steiner [Thu, 28 Mar 2002 23:08:49 +0000 (23:08 +0000)]
new add, remove stock icons

24 years agowhen encountering non-UTF-8 file names, alert the user with g_message()
Tim Janik [Thu, 28 Mar 2002 20:08:25 +0000 (20:08 +0000)]
when encountering non-UTF-8 file names, alert the user with g_message()

Thu Mar 28 21:11:04 2002  Tim Janik  <timj@gtk.org>

        * gtk/gtkfilesel.c (open_new_dir): when encountering non-UTF-8 file
        names, alert the user with g_message() instead of g_warning() and
        put out the actual conversion error.

24 years agoUpdated Danish translation.
Ole Laursen [Thu, 28 Mar 2002 18:50:34 +0000 (18:50 +0000)]
Updated Danish translation.

2002-03-28  Ole Laursen  <olau@hardworking.dk>

* da.po: Updated Danish translation.

24 years agoDon't install the handler if the widget isn't realized.
Dave Camp [Thu, 28 Mar 2002 17:05:34 +0000 (17:05 +0000)]
Don't install the handler if the widget isn't realized.

2002-03-28  Dave Camp  <dave@ximian.com>

* gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
the handler if the widget isn't realized.

24 years agoNew font and text icons to solve the dark-theme-problem
Jakub Steiner [Thu, 28 Mar 2002 13:10:11 +0000 (13:10 +0000)]
New font and text icons to solve the dark-theme-problem

24 years agoUpdated Korean translation.
Changwoo Ryu [Thu, 28 Mar 2002 10:06:59 +0000 (10:06 +0000)]
Updated Korean translation.

* ko.po: Updated Korean translation.

24 years agoTry to find libpng via pkg-config first, since libpng-1.2.2 will come with
Matthias Clasen [Wed, 27 Mar 2002 22:53:22 +0000 (22:53 +0000)]
Try to find libpng via pkg-config first, since libpng-1.2.2 will come with

* configure.in: Try to find libpng via pkg-config first,
since libpng-1.2.2 will come with a .pc file.

24 years agoDon't leak info_ptr.
Matthias Clasen [Wed, 27 Mar 2002 22:12:05 +0000 (22:12 +0000)]
Don't leak info_ptr.

* io-png.c (gdk_pixbuf__png_image_stop_load): Don't leak info_ptr.

* io-png.c (gdk_pixbuf__png_image_load): Get rid of unused
end_info. Also call png_read_end to check proper ending of the png
file and catch text chunks after the image data.

24 years agochangelog update
Owen Taylor [Wed, 27 Mar 2002 16:46:42 +0000 (16:46 +0000)]
changelog update

24 years agoSet page->last_focus_child to NULL as well as removing the weak reference,
Owen Taylor [Wed, 27 Mar 2002 16:15:48 +0000 (16:15 +0000)]
Set page->last_focus_child to NULL as well as removing the weak reference,

Wed Mar 27 11:10:39 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_real_remove): Set
        page->last_focus_child to NULL as well as removing the
        weak reference, to deal with reentrancy in set_focus_child().
        (#76634)

24 years agoChangeLog typo.
Murray Cumming [Wed, 27 Mar 2002 11:10:29 +0000 (11:10 +0000)]
ChangeLog typo.

24 years agoCorrected registered return type of move-cursor signal. Had to add a
Murray Cumming [Wed, 27 Mar 2002 10:55:28 +0000 (10:55 +0000)]
Corrected registered return type of move-cursor signal. Had to add a

2002-03-27  Murray Cumming  <murrayc@usa.net>

 * gtk/gtktreeview.cc: Corrected registered return type of
move-cursor signal. Had to add a marshaller to
 gtk/gtkmarshalers.list.

24 years agoMake libpng use g_malloc instead of system malloc.
Matthias Clasen [Tue, 26 Mar 2002 23:17:31 +0000 (23:17 +0000)]
Make libpng use g_malloc instead of system malloc.

* io-png.c (gdk_pixbuf__png_image_load,
gdk_pixbuf__png_image_begin_load): Make libpng use g_malloc
instead of system malloc.

24 years agoAdd a mention of running ldconfig. (#76126, Bill Nayland.)
Owen Taylor [Tue, 26 Mar 2002 20:43:17 +0000 (20:43 +0000)]
Add a mention of running ldconfig. (#76126, Bill Nayland.)

Tue Mar 26 15:41:49 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/building.sgml: Add a mention of running ldconfig.
        (#76126, Bill Nayland.)

24 years agoShuffle the ordering around some more (position before realizing) fixing
Owen Taylor [Tue, 26 Mar 2002 19:59:34 +0000 (19:59 +0000)]
Shuffle the ordering around some more (position before realizing) fixing

Tue Mar 26 14:46:50 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenu.c (gtk_menu_popup): Shuffle the ordering around
        some more (position before realizing) fixing problems with
        arrows popping up at the wrong time (#73386), hopefully not
        introducing other problems. (Reported by Ettore Perrazoli, others)

24 years agofixed my ChangeLog entry
Sven Neumann [Tue, 26 Mar 2002 17:22:49 +0000 (17:22 +0000)]
fixed my ChangeLog entry

24 years agoFree the path after calling gtk_tree_view_row_activated() rather than
Dave Camp [Tue, 26 Mar 2002 17:12:30 +0000 (17:12 +0000)]
Free the path after calling gtk_tree_view_row_activated() rather than

2002-03-26  Dave Camp  <dave@ximian.com>

        * gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
        after calling gtk_tree_view_row_activated() rather than before.

24 years agoUpdated Slovak translation.
Stanislav Visnovsky [Tue, 26 Mar 2002 12:41:44 +0000 (12:41 +0000)]
Updated Slovak translation.

2002-03-26  Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>

* sk.po: Updated Slovak translation.

24 years agoDon't leak pixbuf on error.
Matthias Clasen [Mon, 25 Mar 2002 23:22:01 +0000 (23:22 +0000)]
Don't leak pixbuf on error.

* io-tiff.c (tiff_image_parse): Don't leak pixbuf on error.

* io-gif.c (gdk_pixbuf__gif_image_load_increment): Don't leak
context->buf on error.

* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Make sure to call
stop_load even for short images to prevent memleaks.

24 years agofree the style's font_description before accessing a new one.
Sven Neumann [Mon, 25 Mar 2002 20:11:27 +0000 (20:11 +0000)]
free the style's font_description before accessing a new one.

2002-03-25  Sven Neumann  <sven@gimp.org>

* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
font_description before accessing a new one.
(gtk_rc_parse_stock): always unref the created icon_set. #76289

24 years agokill code duplicated in gtk_binding_entry_add_signall.
Mark McLoughlin [Mon, 25 Mar 2002 16:40:03 +0000 (16:40 +0000)]
kill code duplicated in gtk_binding_entry_add_signall.

2002-03-25  Mark McLoughlin  <mark@skynet.ie>

        * gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
        kill code duplicated in gtk_binding_entry_add_signall.

24 years agofix bugs in the code.
Jonathan Blandford [Mon, 25 Mar 2002 16:33:21 +0000 (16:33 +0000)]
fix bugs in the code.

Mon Mar 25 11:31:41 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/tree_widget.sgml: fix bugs in the code.

24 years agoMake path arg const, #75653
Jonathan Blandford [Mon, 25 Mar 2002 04:10:49 +0000 (04:10 +0000)]
Make path arg const, #75653

Sun Mar 24 10:32:38 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreemodel.c (gtk_tree_path_copy): Make path arg const, #75653

* gtk/gtkfontsel.c (gtk_font_selection_show_available_styles): fix
a warning

* gtk/gtktreeview.c (gtk_tree_view_button_press): remove the grab
when we emit row_activated so that listeners of this signal can
grab the mouse, #75629

24 years agoChanged signature to return success and set a GError parameter, adjusted
Matthias Clasen [Mon, 25 Mar 2002 00:15:00 +0000 (00:15 +0000)]
Changed signature to return success and set a GError parameter, adjusted

* io-png.c (setup_png_transformations): Changed signature to
return success and set a GError parameter, adjusted all callers.
Also work around a possible FPE in libpng and always check that
the new info is sane.

24 years agoUpdated Polish translation by GNOME PL Team <translators@gnome.pl>
Chyla Zbigniew [Sun, 24 Mar 2002 15:12:05 +0000 (15:12 +0000)]
Updated Polish translation by GNOME PL Team <translators@gnome.pl>

24 years agoinvalidate the line containing start, even if the [start,end) range is
Havoc Pennington [Sat, 23 Mar 2002 22:14:40 +0000 (22:14 +0000)]
invalidate the line containing start, even if the [start,end) range is

2002-03-23  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextlayout.c (gtk_text_layout_real_invalidate):
invalidate the line containing start, even if the [start,end)
range is empty (just invalidate [start,end], essentially).
Partially fixes #72374

24 years agocontext->updated_func is NULL during a nonincremental load.
Matthias Clasen [Sat, 23 Mar 2002 21:17:17 +0000 (21:17 +0000)]
context->updated_func is NULL during a nonincremental load.

* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment):
context->updated_func is NULL during a nonincremental load.
(gdk_pixbuf__wbmp_image_load): Stop reading after the first error.

24 years agoend any selection in progress, patch from db@zigo.dhs.org, #74620
Havoc Pennington [Sat, 23 Mar 2002 18:08:52 +0000 (18:08 +0000)]
end any selection in progress, patch from db@zigo.dhs.org, #74620

2002-03-23  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextview.c (gtk_text_view_do_popup): end any selection in
progress, patch from db@zigo.dhs.org, #74620

24 years agoextend selection for pageup/pagedown and ctrl+pageup/pagedown if shift is
Havoc Pennington [Sat, 23 Mar 2002 17:54:16 +0000 (17:54 +0000)]
extend selection for pageup/pagedown and ctrl+pageup/pagedown if shift is

2002-03-23  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): extend
selection for pageup/pagedown and ctrl+pageup/pagedown if
shift is held. more of #53934

24 years agodisconnect layout handlers earlier in the function, to avoid possible
Havoc Pennington [Sat, 23 Mar 2002 17:35:09 +0000 (17:35 +0000)]
disconnect layout handlers earlier in the function, to avoid possible

2002-03-23  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextview.c (gtk_text_view_destroy_layout): disconnect
layout handlers earlier in the function, to avoid possible
reentrancy screwups
(gtk_text_view_invalidate): Don't install idle handlers if
layout == NULL, otherwise we get problems during finalization
since clearing the buffer invalidates and puts the idle handlers
back after we destroy the layout. #74660
(gtk_text_view_ensure_layout): Install the validation handlers
right after creating the layout.

* gtk/gtktexttagtable.c (foreach_unref): call
_gtk_text_buffer_notify_will_remove_tag(), #75126

24 years agoadd more explanatory text to the error message about missing charsets, and
Havoc Pennington [Sat, 23 Mar 2002 04:37:53 +0000 (04:37 +0000)]
add more explanatory text to the error message about missing charsets, and

2002-03-22  Havoc Pennington  <hp@pobox.com>

* gdk/x11/gdkfont-x11.c (gdk_fontset_load): add more explanatory
text to the error message about missing charsets, and use
g_printerr() not g_warning() since this is typically not a
programming error (we do not export any API to ask whether
a font set will have missing charsets so apps realistically can't
do anything other than try the gdk_fontset_load())

* gtk/gtktextview.c (gtk_text_view_key_press_event): return FALSE
if the text view isn't editable and the user presses Return,
so default buttons and such can be activated, #74937

* gtk/gtktextbuffer.c (paste_from_buffer): don't insert
if the insertion point is not editable and the paste
is interactive, #74125

* gtk/gtkwindow.c (gtk_window_move_resize): enhance the #if 0
debug spew

* gtk/gtktextbuffer.c (cut_or_copy): only remove the previous
cut/copied data right before replacing it, when we know we are
going to replace it. Fixes #74049

24 years agoFix typo, where x value was assigned to both x and y.
Richard Hult [Fri, 22 Mar 2002 17:47:51 +0000 (17:47 +0000)]
Fix typo, where x value was assigned to both x and y.

2002-03-22  Richard Hult  <rhult@codefactory.se>

* gdk/gdkevents.c (gdk_event_get_root_coords): Fix typo, where x
value was assigned to both x and y.

24 years agoPartial fix for problem where keypad keys acted as shift-arrows in an
Owen Taylor [Fri, 22 Mar 2002 17:35:14 +0000 (17:35 +0000)]
Partial fix for problem where keypad keys acted as shift-arrows in an

Fri Mar 22 11:29:11 2002  Owen Taylor  <otaylor@redhat.com>

        Partial fix for problem where keypad keys acted
        as shift-arrows in an entry rather than arrows (#74327)

        * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Sort lookup
        results by number of modifiers in the entry. Fixes
        problem where if a key matched both modified and unmodified
        key bindings ... e.g., the distinguishing key binding
        was consumed, then it was random which was used.

        * gtk/gtkbindings.c (gtk_binding_entries_sort_patterns):
        Catch the case where there are multiple entries from the
        same bindingset (with different modifiers), and use only
        the first entry, which, with the change in _gtk_key_hash_lookup()

24 years agoFix memory leak. (#74400, Morten Welinder.)
Owen Taylor [Fri, 22 Mar 2002 16:06:06 +0000 (16:06 +0000)]
Fix memory leak. (#74400, Morten Welinder.)

Fri Mar 22 10:56:19 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkaccelmap.c (gtk_accel_map_save_fd): Fix memory
        leak. (#74400, Morten Welinder.)

        * gtk/gtkaccelmap.c: Properly handle short returns from
        write() calls. (Handling EINTR isn't enough... that only
        handles the case where you were interrupted before you
        wrote a single byte.)

        * gdk/linux-fb/gdkmouse-fb.c gdk/linux-fb/gdkkeyboard-fb.c:
        Robustify against short returns from write() calls.

24 years agori Mar 22 10:12:10 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Fri, 22 Mar 2002 15:23:08 +0000 (15:23 +0000)]
ri Mar 22 10:12:10 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextview.c (gtk_text_view_paint): Change
        G_BREAKPOINT() to g_assert_not_reached ().
(#75865, Ashok Venkiteswaran)

24 years agoDon't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fix
Tor Lillqvist [Thu, 21 Mar 2002 22:36:02 +0000 (22:36 +0000)]
Don't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fix

2002-03-22  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Don't clear
all of the pen_style, just the PS_STYLE_MASK. Seems to fix #74441,
but that is just the special case of one-pixel wide one-pixel
on-off dotted lines. To fully implement generic X11 style dashed
lines a major rewrite would be needed.

24 years agoTrivial typo fix. (Vitaly Tishkov, #75726)
Matthias Clasen [Thu, 21 Mar 2002 21:59:41 +0000 (21:59 +0000)]
Trivial typo fix. (Vitaly Tishkov, #75726)

* gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
fix. (Vitaly Tishkov, #75726)

24 years agoRemove some left over debugging code with a G_BREAKPOINT() in it.
Owen Taylor [Thu, 21 Mar 2002 15:04:41 +0000 (15:04 +0000)]
Remove some left over debugging code with a G_BREAKPOINT() in it.

Thu Mar 21 10:04:05 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkwindow.c (gdk_window_real_get_depth): Remove
        some left over debugging code with a G_BREAKPOINT()
        in it.

24 years agoMuch expanded overview docs for GtkTreeView and related objects.
Cody Russell [Thu, 21 Mar 2002 04:48:31 +0000 (04:48 +0000)]
Much expanded overview docs for GtkTreeView and related objects.

24 years agoWhen changing months when the user clicks on a prev-month or next-month
Owen Taylor [Thu, 21 Mar 2002 00:50:15 +0000 (00:50 +0000)]
When changing months when the user clicks on a prev-month or next-month

Wed Mar 20 19:33:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkcalendar.c (gtk_calendar_main_button): When
        changing months when the user clicks on a prev-month
        or next-month day, focus and select the new day.
        Ignore double clicks on prev-month, next-month days.
        (Based on suggestions from Andras Salamon, #74173)

        * gtk/gtkcalendar.c: Implement the focused/unfocused
        selected color change.

24 years agoPatches from Carlo E. Prelz <fluido@fluido.as> Now gtkfb at least compiles
Alex Larsson [Thu, 21 Mar 2002 00:41:43 +0000 (00:41 +0000)]
Patches from Carlo E. Prelz <fluido@fluido.as> Now gtkfb at least compiles

2002-03-20  Alex Larsson  <alexl@redhat.com>

Patches from Carlo E. Prelz <fluido@fluido.as>
Now gtkfb at least compiles and mostly works. The keyboard
stuff needs more loving.

* gdk/linux-fb/gdkkeyboard-fb.c (xlate_get_for_keyval,
xlate_get_for_keycode, raw_get_for_keyval, raw_get_for_keycode):
At least set the out parameters for these calls.

* gdk/linux-fb/gdkmain-fb.c:
(gdk_pointer_grab_info_libgtk_only, gdk_keyboard_grab_info_libgtk_only):
Implement new functions.

24 years agoAvoid a double free error if reading the colormap fails.
Matthias Clasen [Thu, 21 Mar 2002 00:31:23 +0000 (00:31 +0000)]
Avoid a double free error if reading the colormap fails.

* io-tga.c (try_colormap, gdk_pixbuf__tga_stop_load): Avoid a
double free error if reading the colormap fails.

* io-tiff.c (tiff_image_parse): Make TIFFReadRGBAImage stop on
errors, since it may otherwise segfault on certain bad TIFFs.

24 years agoShort-circuit the text to the exact same thing, so we don't unexpectedly
Owen Taylor [Thu, 21 Mar 2002 00:08:19 +0000 (00:08 +0000)]
Short-circuit the text to the exact same thing, so we don't unexpectedly

Wed Mar 20 19:00:03 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkentry.c (gtk_entry_set_text): Short-circuit
        the text to the exact same thing, so we don't
        unexpectedly change the selection or cursor position.
        (#74290, John Ellis.)

24 years agofix logic (fixes #74235, #73593)
Kristian Rietveld [Wed, 20 Mar 2002 23:04:16 +0000 (23:04 +0000)]
fix logic (fixes #74235, #73593)

Thu Mar 21 00:05:14 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_get_background_area),
        (gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)

24 years agoPatch from Richard Hestilow to fix gtk-font-name changes for widgets that
Owen Taylor [Wed, 20 Mar 2002 22:20:36 +0000 (22:20 +0000)]
Patch from Richard Hestilow to fix gtk-font-name changes for widgets that

Wed Mar 20 17:11:51 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkrc.c: Patch from Richard Hestilow to fix
        gtk-font-name changes for widgets that get the actual
        default style. (#73709)

24 years agoadd _gtk_rbtree_set_fixed_height()
Kristian Rietveld [Wed, 20 Mar 2002 22:06:05 +0000 (22:06 +0000)]
add _gtk_rbtree_set_fixed_height()

Wed Mar 20 22:59:23 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtkrbtree.[ch]: add _gtk_rbtree_set_fixed_height()

        * gtk/gtktreeprivate.h: add fixed_height_check field

        * gtk/gtktreeview.c (gtk_tree_view_init): initialize
        scroll_sync_timer and fixed_height_check
        (do_validate_rows): add fixed_height_check. If all validated rows
        in the first cycle have the same height, then we set that height for
        the entire tree. This is some sort of 'fake' optimization, but helps
        a lot for the common case. We keep validating the entire tree in
        the background though.
        (gtk_tree_view_set_model): reset fixed_height_check

24 years agoPatch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC,
Owen Taylor [Wed, 20 Mar 2002 21:47:01 +0000 (21:47 +0000)]
Patch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC,

Wed Mar 20 16:36:08 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/*.c: Patch from Erwann Chenede, #73900 fixing
        a lot of warnings with Forte CC, mostly implicit
        casts between void * and function pointers.

        * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
        state field is not a GdkModifierType. (Also #73900)

24 years agoRemove leftover notification of has-default. (#75508, Jacob Berkman.)
Owen Taylor [Wed, 20 Mar 2002 17:37:48 +0000 (17:37 +0000)]
Remove leftover notification of has-default. (#75508, Jacob Berkman.)

Wed Mar 20 12:35:22 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.c (gtk_widget_grab_default): Remove
        leftover notification of has-default. (#75508, Jacob
        Berkman.)

24 years agoAllow arrow keys as accelerators, as long as some modifier is pressed.
Owen Taylor [Wed, 20 Mar 2002 17:32:37 +0000 (17:32 +0000)]
Allow arrow keys as accelerators, as long as some modifier is pressed.

Wed Mar 20 12:27:07 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow
        arrow keys as accelerators, as long as some modifier
        is pressed. (#75495)

        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Fix
        incorrect example in the docs.

24 years agoFix segfault when widget->parent is NULL. (#75615, Alexey A. Malyshev)
Owen Taylor [Wed, 20 Mar 2002 17:09:57 +0000 (17:09 +0000)]
Fix segfault when widget->parent is NULL. (#75615, Alexey A. Malyshev)

Wed Mar 20 12:06:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.c (gtk_widget_set_child_visible):
        Fix segfault when widget->parent is NULL.
        (#75615, Alexey A. Malyshev)

24 years agoImprove test to prevent infinite loop. (#74952, Thomas Leonard)
Owen Taylor [Wed, 20 Mar 2002 17:04:32 +0000 (17:04 +0000)]
Improve test to prevent infinite loop. (#74952, Thomas Leonard)

Wed Mar 20 11:32:07 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkentry.c: Improve test to prevent infinite
        loop. (#74952, Thomas Leonard)

        * gtk/gtkmenushell.c (gtk_real_menu_shell_cycle_focus):
        Fix warning when toplevel menu shell isn't a menu
        bar. (Thomas Leonard, #75602)

24 years agoUse $PKG_CONFIG, not pkg-config. (LEE Sau Dan, #75572)
Owen Taylor [Wed, 20 Mar 2002 16:13:09 +0000 (16:13 +0000)]
Use $PKG_CONFIG, not pkg-config. (LEE Sau Dan, #75572)

Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Use $PKG_CONFIG, not pkg-config.
        (LEE Sau Dan, #75572)

24 years agoFix assignment of time in scroll events. (Sven Neumann, #75574)
Owen Taylor [Wed, 20 Mar 2002 15:59:30 +0000 (15:59 +0000)]
Fix assignment of time in scroll events. (Sven Neumann, #75574)

Wed Mar 20 10:55:56 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix assignment
        of time in scroll events. (Sven Neumann, #75574)

24 years agoUpdated Japanese translation.
Takayuki KUSANO [Wed, 20 Mar 2002 15:31:42 +0000 (15:31 +0000)]
Updated Japanese translation.

* ja.po: Updated Japanese translation.

24 years agoUpdated Korean translation.
Changwoo Ryu [Wed, 20 Mar 2002 06:01:09 +0000 (06:01 +0000)]
Updated Korean translation.

* ko.po: Updated Korean translation.

24 years agoUse gdk_window_get_toplevel(), as it is the top-level windows that are
Tor Lillqvist [Tue, 19 Mar 2002 23:16:08 +0000 (23:16 +0000)]
Use gdk_window_get_toplevel(), as it is the top-level windows that are

2002-03-20  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkdnd-win32.c (gdk_drag_find_window): Use
gdk_window_get_toplevel(), as it is the top-level windows that are
registered for DND.

* gdk/win32/gdkwin32.h: Don't include gdkinternals.h.

24 years agoUpdated Danish translation.
Ole Laursen [Tue, 19 Mar 2002 20:28:07 +0000 (20:28 +0000)]
Updated Danish translation.

2002-03-19  Ole Laursen  <olau@hardworking.dk>

* da.po: Updated Danish translation.

24 years agofix infinite loop when gtk_combo_func() returns NULL (bug #75464)
jacob berkman [Tue, 19 Mar 2002 17:59:13 +0000 (17:59 +0000)]
fix infinite loop when gtk_combo_func() returns NULL (bug #75464)

2002-03-19  jacob berkman  <jacob@ximian.com>

* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)

24 years agoset the correct min/max values for the ratio property (fixes #75331)
jacob berkman [Mon, 18 Mar 2002 23:08:38 +0000 (23:08 +0000)]
set the correct min/max values for the ratio property (fixes #75331)

2002-03-18  jacob berkman  <jacob@ximian.com>

* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
correct min/max values for the ratio property (fixes #75331)